home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 4630 < prev    next >
Encoding:
Internet Message Format  |  1996-08-06  |  824 b 

  1. Path: newsstand.cit.cornell.edu!globetrot
  2. From: wo10@cornell.edu (Warren Ouyang)
  3. Newsgroups: comp.lang.c++
  4. Subject: re: readthis  (question on character pointer and strings)
  5. Date: 31 Jan 1996 13:10:32 GMT
  6. Organization: Cornell University
  7. Sender: wo10@cornell.edu (Verified)
  8. Message-ID: <4enpo8$t02@newsstand.cit.cornell.edu>
  9. References: <4em5fs$a86@ixnews4.ix.netcom.com> <DM1KIt.3Jx.0.-s@cs.vu.nl>
  10. NNTP-Posting-Host: j320111232.resnet.cornell.edu
  11. X-Newsreader: News Xpress Version 1.0 Beta #4
  12.  
  13.     
  14. >but, then again, that's probably not what you want. How about:
  15. >char* dos;
  16. >// now do some things, especially assigning dos to a string
  17. >if (strcmp(dos,"dir")==0)
  18. >    goto b;
  19.  
  20. I was just wondering... if you declare char* dos; does it allocate any room to 
  21. store a string into the memory position that "dos" points to?  
  22.  
  23. Warren
  24.